﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UserList.ascx.cs" Inherits="_5ChickDeal.Admin.Control.UserList" %>


<asp:Panel ID="PanelAdd" CssClass="box" runat="server" DefaultButton="Submit">
        <div class="box-head">
            <h2>
                Thêm mới</h2>
        </div>
        <br />
        <table>
        <tr>
            <td class="title">Email</td>
            <td><asp:TextBox runat="server" ID="TextBoxEmail" CssClass="field size1"></asp:TextBox></td>
        </tr>
        <tr>
            <td class="title">Mật khẩu</td>
            <td><asp:TextBox runat="server" ID="TextBoxMatKhau" TextMode="Password" CssClass="field size1"></asp:TextBox></td>
        </tr>
        <tr>
            <td class="title">Họ tên</td>
            <td><asp:TextBox runat="server" ID="TextBoxHoten" CssClass="field size1"></asp:TextBox></td>
        </tr>
        
         <tr>
            <td class="title">Điện thoại</td>
            <td><asp:TextBox runat="server" ID="TextBoxDienThoai" CssClass="field size1"></asp:TextBox></td>
        </tr>
        </table>
        
        <br />
        <div class="buttons">
            <asp:Button CssClass="button" runat="server" ID="Submit" Text="Thêm" 
                onclick="Submit_Click" />
        </div>
    </asp:Panel>

<asp:Panel CssClass="box" ID="PaneList" runat="server" DefaultButton="TimKiem">

    
    <asp:Panel ID="PanelError" runat="server" Visible="false">
    <div id="err" class="msg msg-error">
       <p>
      <asp:Label ID="label1" runat="server" Text="Lỗi! không thể xóa!"></asp:Label>
      </p>
        <a class="close" href="#">close</a>
    </div>
    
    
    </asp:Panel>
    
    <asp:Panel ID="PanelOk" runat="server" Visible="false">
    <div class="msg msg-ok">
<p>
<asp:Label ID= "LabelOk" runat="server"></asp:Label>
</p>
<a class="close" href="#">close</a>
</div>
    
    
    </asp:Panel>




					<div class="box-head">
						<h2 class="left">Danh sách</h2>
						
						
						
						<div class="right">
							<label>Tìm kiếm</label>
							<asp:TextBox ID="TextBoxTimKiem" CssClass="field small-field" runat="server" />
							<asp:Button ID="TimKiem" CssClass="button" Text="Tìm" runat="server" 
                                onclick="TimKiem_Click" />
						</div>
						
					</div>
					<!-- End Box Head -->	

					<!-- Table -->
					<div class="table">
						
						<asp:GridView Width="100%" ID="GridViewUser" runat="server" 
                            AutoGenerateColumns="False" AllowPaging="True" 
                            onrowdatabound="GridViewUser_RowDataBound" 
                            onrowdeleting="GridViewUser_RowDeleting" DataKeyNames="id" 
                            onpageindexchanging="GridViewUser_PageIndexChanging" 
                            onrowcancelingedit="GridViewUser_RowCancelingEdit" 
                            onrowediting="GridViewUser_RowEditing" onrowupdating="GridViewUser_RowUpdating">
                            <PagerSettings FirstPageText="Đầu" LastPageText="Cuối" Mode="NumericFirstLast" 
                                NextPageText="Tiếp" PreviousPageText="Trước" />
    <Columns>
        <asp:BoundField DataField="id" HeaderText="ID" />
        <asp:BoundField DataField="email" HeaderText="Email" />
        <asp:BoundField DataField="hoten" HeaderText="Họ tên" />
        <asp:BoundField DataField="dienthoai" HeaderText="Điện thoại" />
        <asp:CommandField ButtonType="Image" CancelImageUrl="~/Admin/Images/cancel.png" 
            EditImageUrl="~/Admin/Images/edit.png" HeaderText="Sửa" ShowEditButton="True" 
            UpdateImageUrl="~/Admin/Images/update.png" />
        <asp:CommandField ButtonType="Image" DeleteImageUrl="~/Admin/Images/delete.jpg" 
            HeaderText="Xóa" ShowDeleteButton="True" />
    </Columns>
    
                            <PagerStyle CssClass="pagging" />
    
</asp:GridView>
					</div>
					<!-- Table -->
					
				</asp:Panel>